package com.nl.bean.input;

import java.io.Serializable;

/**
 * @author shihb
 * @date 2019/12/26 12:36
 * 订单的样例类-输入
 */
public class OrderEvent implements Serializable {

  /**
   * 订单id
   */
  private Long orderId;
  /**
   * 用户的行为pay create
   */
  private String eventType;
  /**
   * 交易回执id
   */
  private String transactionId;
  /**
   * 事件戳
   */
  private Long eventTime;

  public OrderEvent() {
  }

  public OrderEvent(Long orderId, String eventType, String transactionId, Long eventTime) {
    this.orderId = orderId;
    this.eventType = eventType;
    this.transactionId = transactionId;
    this.eventTime = eventTime;
  }

  public Long getOrderId() {
    return orderId;
  }

  public void setOrderId(Long orderId) {
    this.orderId = orderId;
  }

  public String getEventType() {
    return eventType;
  }

  public void setEventType(String eventType) {
    this.eventType = eventType;
  }

  public String getTransactionId() {
    return transactionId;
  }

  public void setTransactionId(String transactionId) {
    this.transactionId = transactionId;
  }

  public Long getEventTime() {
    return eventTime;
  }

  public void setEventTime(Long eventTime) {
    this.eventTime = eventTime;
  }

  @Override
  public String toString() {
    return "(" + orderId + "," + eventType + "," + transactionId + "," + eventTime + ")";
  }
}
